<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/7/19 0019
  Time: 19:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <c:choose>
        <c:when test="${orderModel.oOrder.orderStatus==0}">
            <title>待付款</title>
        </c:when>
        <c:when test="${orderModel.oOrder.orderStatus==1}">
            <title>已付款</title>
        </c:when>
        <c:when test="${orderModel.oOrder.orderStatus==2}">
              <title>已发货</title>
        </c:when>
    </c:choose>
</head>
<body>
<article class="viewports">
    <ul class="imglist01 c3">
        <li class="mb10">
            订单号：${orderModel.oOrder.orderNum}<span class="r c-cb1448">
            <c:choose>
                <c:when test="${orderModel.oOrder.orderStatus==0}">
                    待付款
                </c:when>
                <c:when test="${orderModel.oOrder.orderStatus==1}">
                    已付款
                </c:when>
                <c:when test="${orderModel.oOrder.orderStatus==2}">
                    正在配送中
                </c:when>
            </c:choose>

            </span>
        </li>
        <li class="mb10 c5 cart_bg">
            <div class="layout-box ptb20">
                <div class="mr20">
                    <i class="ico-60 ico_address mt20"></i>
                </div>
                <div class="box-col">
                    <div>收货人：${orderModel.oOrder.consigneeName}<span class="r">${orderModel.oOrder.consigneePhone}</span></div>
                    <div class="hgt2 mt10">收货地址：${orderModel.oOrder.provinceName}${orderModel.oOrder.cityName}${orderModel.oOrder.districtName}${orderModel.oOrder.address} </div>
                </div>
                <div class="right_arrow pl20 mt10">
                    <i></i>
                </div>
            </div>
        </li>
<c:forEach var="item" items="${orderModel.orderProductsEntityList}">
        <li class="mb10">
            <div class="layout-box p20 odr_b">
                <div class="ith_img usernane_img140 mr20">
                    <span class="bg_span" style="background-image:url(${item.image});"></span>
                </div>
                <div class="box-col">
                    <h2 class="fs28 hgt2">${item.title}</h2>
                    <div class="fs24 mt20 lh1">
                        <span class="c-cb1448">&yen;${item.price}</span>
                        <sapn class="r ">
                            &times;${item.quantity}
                            </span>
                    </div>
                </div>
            </div>

            <%--<div class="layout-box p20">--%>
                <%--<div class="ith_img usernane_img140 mr20">--%>
                    <%--<span class="bg_span" style="background-image:url(https://g-search2.alicdn.com/img/bao/uploaded/i4/TB1LfPaIFXXXXXEapXXXXXXXXXX.jpg_180x180.jpg);"></span>--%>
                <%--</div>--%>
                <%--<div class="box-col">--%>
                    <%--<h2 class="fs28 hgt2">苹果   iPhone6s  玫瑰金 16G</h2>--%>
                    <%--<div class="fs24 mt20 lh1">--%>
                        <%--<span class="c-cb1448">&yen;4988.00</span>--%>
                        <%--<sapn class="r ">--%>
                            <%--&times;1--%>
                            <%--</span>--%>
                    <%--</div>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</li>--%>
</c:forEach>
        <li class="mb10 lh1-5">
            <div>
                <span class="box-col">商品总价：</span>
                <span class="r c-cb1448">&yen;${orderModel.oOrder.totalOrderAmount}</span>
            </div>
            <div>
                <span class="box-col">运费：</span>
                <span class="r c-cb1448">&yen;${orderModel.oOrder.totalFreightAmount}</span>
            </div>
            <div>
                <span class="box-col">实际付款：</span>
                <span class="r c-cb1448">&yen;${orderModel.oOrder.paymentMoneyAmount}</span>
            </div>
        </li>
        <li class="mb10">
            <span class="box-col">下单时间：</span>
            <span class="r">
    <fmt:formatDate value="${orderModel.oOrder.orderTime}" type="both"/>  </span>
        </li>
    </ul>
</article>
<!--star 底下按钮-->
<div class="buy_height"></div>
<div class="bottom_buy b-ffffff">
    <div class="plr20">
                <span class="r">
                      <c:choose>
                          <c:when test="${orderModel.oOrder.orderStatus==0}">
                              <a class="odr2 r5 ptb5_lr15" href="#">关闭交易</a>&nbsp;&nbsp;
                              <a class="odr2 r5 ptb5_lr15 c-cb1448" href="#">去付款</a>
                          </c:when>
                          <c:when test="${orderModel.oOrder.orderStatus==1}">
                              <a class="odr2 r5 ptb5_lr15" href="#">申请退款</a>&nbsp;&nbsp;
                              <a class="odr2 r5 ptb5_lr15 c-cb1448" href="#">确认收货</a>
                          </c:when>
                          <c:when test="${orderModel.oOrder.orderStatus==2}">
                              <a class="odr2 r5 ptb5_lr15" href="#">申请退款</a>&nbsp;&nbsp;
                              <a class="odr2 r5 ptb5_lr15 c-cb1448" href="#">提醒收货</a>
                          </c:when>
                          <c:when test="${orderModel.oOrder.orderStatus==-1}">
                              <a class="odr2 r5 ptb5_lr15 c-cb1448" href="#">再次购买</a>
                          </c:when>
                      </c:choose>

                </span>
    </div>
</div>
<!--end 底下按钮-->
</body>
</html>
